package com.infitecs.eyas.security.dao;


import com.infitecs.eyas.security.model.User;
import com.infitecs.krill.mybatis.annotation.mybatisRepository;

import java.util.List;

@mybatisRepository
public interface UserDao {

    User getUserByUsername(String loginName);

    List<User> getUserListPage(User user);

    int addUser(User user);

    User getUser(String userId);

    int updateUser(User user);

    int deleteUser(String userId);

    int addUserRole(User user);

    int deleteUserRoleByUserId(String loginName);

    int addUserPermission(User user);

    int updatePassword(User user);

    List<User> getUserList();

}
